<?php

class index_controller extends Controller {
	public function init(){
		if(!empty($this->data)){
			foreach($this->data as $dato => $val){
				$this->set($dato, $val);
			}
			//$this->system->setHook('ciao');
		}
	}
	
	public function ciao(){
		if($this->data)$this->set('frase', $this->data);
	}
	
	public function bau(){
		$this->set('cont', 'fra');
	}
}